project(P2PMediaPlayer)
cmake_minimum_required(VERSION 2.6)

set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS_DEBUG "-DDEBUG -g")

# External dependencies
find_package(Boost)
include(FindCurl.cmake)
include(FindNCurses.cmake)
include(FindLibTorrent.cmake)

include_directories(${CURL_INCLUDE_DIR} ${LIBTORRENT_INCLUDE_DIR} ${NCURSES_INCLUDE_DIR})

# torrent_control_test
add_executable(torrent_control_test torrent_control_test.cpp torrent_control.cpp backup_server_connection.cpp dispatcher.cpp)
target_link_libraries(torrent_control_test ${CURL_LIBRARY} ${LIBTORRENT_LIBRARY} ${NCURSES_LIBRARY})
